import request from '@/utils/request'
export function listJwc(params) {
  return request({
    url: "/knrdApply/apply/listJwc",
    method: 'get',
    params
  });
}

export function listXw(params) {
  return request({
    url: "/knrdApply/apply/listXw",
    method: 'get',
    params
  });
}
export function getxh(params) {
  return request({
    url: "/knrdApply/apply/xh",
    method: 'get',
    params
  });
}
export function getStuByXh(params) {
  return request({
    url: "/knrdApply/apply/getStuByXh",
    method: 'get',
    params
  });
}

export function listFdy(params) {
  return request({
    url: "/knrdApply/apply/listFdy",
    method: 'get',
    params
  });
}


export function listOwn(params) {
  return request({
    url: "/knrdApply/apply/listOwn",
    method: 'get',
    params
  });
}



// 查询困难认定列表
export function listApply(query) {
  return request({
    url: '/knrdApply/apply/list',
    method: 'get',
    params: query
  })
}

// 查询困难认定详细
export function getApply(id) {
  return request({
    url: '/knrdApply/apply/' + id,
    method: 'get'
  })
}

// 新增困难认定
export function addApply(data) {
  return request({
    url: '/knrdApply/apply/add',
    method: 'post',
    data: data
  })
}

// 修改困难认定
export function updateApply(data) {
  return request({
    url: '/knrdApply/apply/edit',
    method: 'post',
    data: data
  })
}

// 删除困难认定
export function delApply(id) {
  return request({
    url: '/knrdApply/apply/delete/' + id,
    method: 'get'
  })
}
// 批量审核困难认定
export function updateAllSrsKnrdApply(data) {
  return request({
    url: '/knrdApply/apply/updateAllSrsKnrdApply',
    method: 'post',
    data: data
  })
}
//一键审批
export function jwcUpdateAll(data) {
  return request({
    url: '/knrdApply/apply/jwcUpdateAll',
    method: 'post',
    data: data
  });
}
//infoCheck
export function infoCheck() {
  return request({
    url: '/knrdApply/apply/infoCheck',
    method: 'post',

  })
}

export function vaild(data) {
  return request({
    url: '/knrdApply/apply/valid',
    method: 'post',
    data: data
  })
}

// 修改困难认定
export function fdySave(data) {
  return request({
    url: '/knrdApply/apply/fdySave',
    method: 'post',
    data: data
  })
}
export function getCurrentYear(id) {
  return request({
    url: '/knrdApply/apply/getCurrentYear',
    method: 'post'
  })
}
export function findByXhAndApplyYear(data) {
  return request({
    url: '/knrdApply/apply/findByXhAndApplyYear',
    method: 'post',
    data: data
  })
}
export function reject(data) {
  return request({
    url: '/knrdApply/apply/reject',
    method: 'post',
    data: data
  })
}
// 查询下一个审核的
export function jwcNext(data) {
  return request({
    url: '/knrdApply/apply/jwcNext',
    method: 'post',
    data: data
  })
}
//辅导员下一个
// 查询下一个审核的
export function fdyNext(data) {
  return request({
    url: '/knrdApply/apply/fdyNext',
    method: 'post',
    data: data
  })
}

//二级学院领导下一个
export function xwNext(data) {
  return request({
    url: '/knrdApply/apply/xwNext',
    method: 'post',
    data: data
  })
}
//撤销，撤回
export function revoke(data) {
  return request({
    url: '/knrdApply/apply/revoke',
    method: 'post',
    data: data
  })
}
//撤销，撤回
export function fdyRevoke(data) {
  return request({
    url: '/knrdApply/apply/fdyRevoke',
    method: 'post',
    data: data
  })
}
export function lock(data) {
  return request({
    url: '/knrdApply/apply/lock',
    method: 'post',
    data: data
  })
}

export function unlock(data) {
  return request({
    url: '/knrdApply/apply/unlock',
    method: 'post',
    data: data
  })
}


export function countXw(data) {
  return request({
    url: '/knrdApply/apply/countXw',
    method: 'post',
    data: data
  })
}
